package cn.vcjf.weapp.api.goods.entity;

import cn.vcjf.weapp.common.web.PageModel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;

/**
 * <p>
    * 
    * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
@TableName("vc_goods_group")
public class GoodsGroup extends PageModel<GoodsGroup> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品ID
     */
    private Integer goodsId;

    /**
     * 属性组合ID，pro_value表的主键ID，格式（1,4）
     */
    private String proId;

	/**
	 * 组合属性名称
	 */
    private String proIdName;
    /**
     * 属性组合对应的商品图片
     */
    private String goodsProFilesId;

    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;
    /**
     * 活动价格
     */
    private BigDecimal collagePrice;

    /**
     * 商品库存
     */
    private Integer goodsNum;

    private Integer goodsWarnNum;

    /**
     * SKU码
     */
    @TableField("SKU")
    private String sku;

    /**
     * 商品状态
     */
    private Integer status;

	public String getProIdName() {
		return proIdName;
	}

	public void setProIdName(String proIdName) {
		this.proIdName = proIdName;
	}

	public BigDecimal getCollagePrice() {
		return collagePrice;
	}

	public void setCollagePrice(BigDecimal collagePrice) {
		this.collagePrice = collagePrice;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }
    public String getProId() {
        return proId;
    }

    public void setProId(String proId) {
        this.proId = proId;
    }
    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }
    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }
    public Integer getGoodsWarnNum() {
        return goodsWarnNum;
    }

    public void setGoodsWarnNum(Integer goodsWarnNum) {
        this.goodsWarnNum = goodsWarnNum;
    }
    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getGoodsProFilesId() {
        return goodsProFilesId;
    }

    public void setGoodsProFilesId(String goodsProFilesId) {
        this.goodsProFilesId = goodsProFilesId;
    }

    @Override
    public void preInsert(){
        super.preInsert();
    }
    @Override
    public void preUpdate(){
        super.preInsert();
    }
    @Override
    public String toString() {
        return "GoodsGroup{" +
        "id=" + id +
        ", goodsId=" + goodsId +
        ", proId=" + proId +
        ", goodsPrice=" + goodsPrice +
        ", goodsNum=" + goodsNum +
        ", goodsWarnNum=" + goodsWarnNum +
        ", sku=" + sku +
        ", status=" + status +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        ", sysUserId=" + sysUserId +
        "}";
    }
}
